package com.huidu.bitrade.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huidu.bitrade.entity.MemberGroup;
import com.huidu.bitrade.mapper.MemberGroupMapper;
import com.huidu.bitrade.service.MemberGroupService;
import com.huidu.bitrade.vo.MemberBalanceVo;
import com.huidu.bitrade.vo.MemberHdzVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class MemberGroupServiceImpl  extends ServiceImpl<MemberGroupMapper, MemberGroup> implements MemberGroupService {

    private final MemberGroupMapper memberGroupMapper;
    @Override
    public List<MemberGroup> selectMemberChild(Long pid) {
        return memberGroupMapper.selectMemberChild(pid);
    }
    @Override
    public void walletClean(){
        memberGroupMapper.walletClean();
    }

    @Override
    public List<MemberBalanceVo> selectMemberBalance() {
        return memberGroupMapper.selectMemberBalance();
    }
    @Override
    public  List<MemberHdzVo> selectHdzOrder() {
        return memberGroupMapper.selectHdzOrder();
    }
}
